package com.appengine.news.entity;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Blob;
/**
 * RSS Item Iamges
 * @author Aliaksandr_Spichakou
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class RssImageEntity {
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
    
    @Persistent
    private Blob imageData;
    
    @Persistent
	private Date modified = new Date();
    
    @Persistent
    private String extention;
    
    @Persistent
    private String realURL;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Blob getImageData() {
		return imageData;
	}

	public void setImageData(Blob imageData) {
		this.imageData = imageData;
	}

	public Date getModified() {
		return modified;
	}

	public void setModified(Date modified) {
		this.modified = modified;
	}

	public String getExtention() {
		return extention;
	}

	public void setExtention(String extention) {
		this.extention = extention;
	}

	public String getRealURL() {
		return realURL;
	}

	public void setRealURL(String realURL) {
		this.realURL = realURL;
	}
}
